package com.neugh.service.impl;

import com.neugh.entity.Address;
import com.neugh.mapper.AddressMapper;
import com.neugh.service.AddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements AddressService {


    @Override
    public boolean insertAddress(String address, String addressPeople, String addressPhone) {
        return this.baseMapper.insertAddress(address,addressPeople,addressPhone);
    }

    @Override
    public int selectId(String address, String addressPeople, String addressPhone) {
        return this.baseMapper.selectId(address,addressPeople,addressPhone);
    }

    @Override
    public Address selectAddress(Integer addressId) {
        return this.baseMapper.selectAddress(addressId);
    }
}
